/*
* @Author: wanghongfucoder
* @Date:   2017-03-31 13:17:21
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-03-31 13:21:45
*/

public  class Demo {
	
	public static void main(String[] args) {
		Student model=retriveStudentFromDatabase();
		StudentView view=new StudentView();
		StudentController controller=new StudentController(model,view);
		controller.updateView();
		controller.setStudentName("haha");
		controller.updateView();
	}

	private static Student retriveStudentFromDatabase(){
		Student student=new Student();
		student.setName("wanghognfu");
		student.setRollNo("10");
		return student;
	}
}